package com.chinaoly.baotou.web.controller;

import com.chinaoly.baotou.feign.XtglFeignClient;
import com.chinaoly.frm.core.entity.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feign")
@Api(tags = "Feign第三方调用")
public class FeignController {

    @Autowired
    private XtglFeignClient xtglFeignClient;

    @GetMapping("/queryListByDictType")
    @ApiOperation("可根据字典类型查询全部字典列表")
    public Result queryListByDictType(String dictType){
        Result result = xtglFeignClient.queryListByDictType(dictType);
        return result;
    }
}
